package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Menus;
import com.guigu.pojo.Roles;
import com.guigu.pojo.SystemUsers;
import com.guigu.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MenusService extends IService<Menus> {

    //显示所以权限数据
    public List<Menus> show(Users users);

    //后端登录权限数据显示
    public List<Menus> systemShow(SystemUsers systemUsers);

    List<Menus> querySystembyrid(Roles roles);

    //面包屑导航
    List<Menus> quertop(Integer mid,SystemUsers systemUsers);

    //所有的菜单
    List<Menus> showmenusall();

    //前端面包屑
    List<Menus> querusertop(Integer mid,Users users);

    //分页显示所有菜单
    Page<Menus> querallmenus(Integer grade,Menus menus, Integer pagon, Integer pagesize);

    //添加菜单
    Map addmenus(Menus menus,Integer menusgrade);

    //查找所有的一级菜单
    List<Menus> querallfirstmenus();

    //查找所有的二级菜单
    List<Menus> querallsecondmenus();

    //修改状态
    Map altermenusbyid(Menus menus);

    //批量修改
    Map alterallmenus(Menus menus,Integer[] id);
}
